import { Database } from '@vuex-orm/core';
import Users from '../models/Users';
import Permissions from '../models/Permissions';
import ItemsConfig from '../models/ItemsConfig';
import VueEditorPages from '../models/VueEditorPages';
import Attachments from '../models/Attachments';
import AdminToken from '../models/AdminToken';
import ClientToken from '../models/ClientToken';
import WechatopenMiniappUsers from '../models/WechatopenMiniappUsers';
import MinishopSpu from '../models/MinishopSpu';
import MinishopSku from '../models/MinishopSku';
import MinishopSkuAttrs from '../models/MinishopSkuAttrs';
import Config from '../models/Config';
import Roles from '../models/Roles';

const database = new Database();

database.register(Users);
database.register(Permissions);
database.register(ItemsConfig);
database.register(VueEditorPages);
database.register(Attachments);
database.register(AdminToken);
database.register(ClientToken);
database.register(WechatopenMiniappUsers);
database.register(MinishopSpu);
database.register(MinishopSku);
database.register(MinishopSkuAttrs);
database.register(Config);
database.register(Roles);

export default database;
